<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@ include file="/systeminfo/init_wev8.jsp"%>
<jsp:useBean id="rs" class="weaver.conn.RecordSet" scope="page"/>
<jsp:useBean id="WorkflowCount" class="weaver.page.element.WorkflowCount" scope="page" />

 
<html xmlns="http://www.w3.org/1999/xhtml">


<head>
    <meta  http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>增城区重点项目协同管理平台</title>
    <link href="css/styles.css" rel="stylesheet" type="text/css" />  
    <script src="js/jquery-1.7.2.mins.js" type="text/javascript"></script>
   
	<script>
		/*
		$(document).ready(function(){
		    var screenWidth = $(window).width();//获取屏幕可视区域的宽度。
			$(".bottomDiv").width(screenWidth);//将宽度赋值给bottomDiv使其可以贯穿整个屏幕。
			var screenHeight = $(window).height();//获取屏幕可视区域的高度。
			var divHeight = $(".bottomDiv").height() + 1;//bottomDiv的高度再加上它一像素的边框。
			
			$(window).scroll(function(){
				var scrollHeight = $(document).scrollTop();//获取滚动条滚动的高度。
				if(!window.XMLHttpRequest){
					$(".bottomDiv").css("top",screenHeight + scrollHeight - divHeight);	
				}//判断是否为IE6，如果是，执行大括号中内容
			})
		})

		
		$(document).ready(function(){
		    var screenWidth = $(window).width();//获取屏幕可视区域的宽度。
			$(".titleDiv").width(screenWidth);//将宽度赋值给bottomDiv使其可以贯穿整个屏幕。
			var screenHeight = $(window).height();//获取屏幕可视区域的高度。
			var divHeight = $(".titleDiv").height() + 1;//bottomDiv的高度再加上它一像素的边框。
			
			$(window).scroll(function(){
				var scrollHeight = $(document).scrollTop();//获取滚动条滚动的高度。
				if(!window.XMLHttpRequest){
					$(".titleDiv").css("top",screenHeight + scrollHeight - divHeight);	
				}//判断是否为IE6，如果是，执行大括号中内容
			})
		})
		*/



		$(document).ready(function(){
			var screenHeight = $(window).height();//获取屏幕可视区域的高度。
			var imgHeight = $("#bannerId").height();
			var iframeHeight = screenHeight-140-imgHeight;
			var ss = iframeHeight+'px';
			//document.getElementById("bottomDiv").style.height="300px";
			document.getElementById("iframePart").style.height=ss;

			
		})



	</script>
    <style type="text/css">
		html{height:100%;}

		ul>li{
			width: 140px;
		}

		.nav h3 a {
		    display: block;
		    width: 140px;
		    text-align: center;
		    font-weight: bold;
		    cursor: pointer;
		}

		.nav .sub {
		    display: none;
		    position: absolute;
		    left: -3px;
		    top: 50px;
		    z-index: 1;
		    width: 142px;
		    border: 1px solid #E6E4E3;
		    border-top: 0;
		    background: #fff;
		}

		.nav .sub li {
		    text-align: center;
		    padding: 0 1px;
		    margin-bottom: -1px;
		}

		/*
		.bottomDiv{position:fixed; height:24px; line-height:24px; text-align:center; background-color:#efefef; border-top:1px solid #CCC; 
			left:0px; bottom:0px; _position:absolute;}
		*/
		
	</style>

</head>

<body>

    <div class="titleDiv" style="background: #fbfbfb" id="titleDivId">
        <div class="titleItem ecologyDiv">
            增城区重点项目协同管理平台
        </div>
        <div class="titleItem">
            <div class="navDiv"></div>
            <div class="refreshDiv"></div>
            <div class="searchDiv"></div>
            <div class="clear"></div>
        </div>
        <div class="operateDiv">
            <div class="titleItem">
                <img class="headImg" src="img/headimgs.jpg">
                <span class="namespan"><%=user.getLastname()%></span>
            </div>
			<div class="titleItem exit">
                <a href="/middlecenter/index.jsp" target="_blank">
					后台管理
				</a>
            </div>
            <div class="titleItem exit">
                <a href="/login/Login.jsp" target="_self">
					退出
				</a>
            </div>
            <div class="clear"></div>
        </div>
        <div class="clear"></div>
    </div>
    <div class="banner" id="bannerId" >
        <img src="img/banners2.jpg">
    </div>

    <div class="navBar" style="background: #145eab">
        <ul class="nav clearfix" style="padding-left: 290px;font-size: 18px;display: table;margin: 0 auto;text-align: center;padding: 0;width: 712px;">
            <li class="m">
                <h3>
                	<a id="mhId" onclick="change('/homepage/Homepage.jsp?hpid=21&subCompanyId=1&isfromportal=1&isfromhp=0','0')" style="text-align: left;">
                		<img src="img/home.png" style="height: 20px;width: 20px;float: left;padding: 15px 8px;line-height: 50px;margin-left: 32px;">
                		<p>门户</p>
                	</a>
                </h3>
            </li>

            <li class="s">|</li>
            <li class="m">
                <h3>
                	<a id="zdgzId" onclick="change('/formmode/tree/ViewCustomTree.jsp?id=3','1')" style="text-align: left;">
						<img src="img/focuswork.png" style="height: 20px;width: 20px;float: left;padding: 15px 8px;line-height: 50px;margin-left: 14px;">
                		<p>重点工作</p>
            		</a>
            	</h3>
				<!-- <ul class="sub">
                    <li><a href="/proj/Templet/ProjTempletSele.jsp" target="_blank">系统级项目管理</a></li>
                    <li><a href="/proj/Templet/ProjTempletSele.jsp" target="_blank")">计划级项目管理</a></li>
                </ul> -->
            </li>

            <li class="s">|</li>
            <li class="m">
                <h3>
                	<a id="xmId" onclick="change('/formmode/tree/ViewCustomTree.jsp?id=4','2')" style="text-align: left;">
                		<img src="img/project.png" style="height: 20px;width: 20px;float: left;padding: 15px 8px;line-height: 50px;margin-left: 32px;">
                		<p>项目</p>
                	</a>
                </h3>
				<!-- <ul class="sub" style="display: none;">
                    <li class="two"><a href="/proj/Templet/ProjTempletSele.jsp" target="_blank">项目级项目管理</a></li>
					
                    <li class="two"><a href="/proj/Templet/ProjTempletSele.jsp" target="_blank">任务级项目管理</a></li>
					
					<li class="two"><a href="/proj/Templet/ProjTempletSele.jsp" target="_blank">活动级项目管理</a></li>
                </ul> -->
            </li>

            <li class="s">|</li>
            <li class="m">
                <h3>
                	<a id="dtId" onclick="change('http://172.27.40.40:8010/ZCDZDT/zcythmap/','3')" style="text-align: left;">
                		<img src="img/map.png" style="height: 20px;width: 20px;float: left;padding: 15px 8px;line-height: 50px;margin-left: 32px;">
                		<p>地图</p>
                	</a>
                </h3>

                <!-- <ul class="sub" style="display: none;">
					<li><a onclick="change('/homepage/Homepage.jsp?hpid=14&subCompanyId=1&isfromportal=2','3')">地图展示</a></li>
					<li><a onclick="change('/cowork/coworkview.jsp','3')">项目查询</a></li>
                    
                </ul> -->

            </li>

            <li class="s">|</li>
            <li class="m">
                <h3>
                	<a id="zsId" onclick="change('','')" style="text-align: left;">
                		<img src="img/knowledge.png" style="height: 20px;width: 20px;float: left;padding: 15px 8px;line-height: 50px;margin-left: 32px;">
                		<p>知识</p>
                	</a>
                </h3>

               <ul class="sub" style="display: none;">
                    <li><a onclick="change('/docs/search/DocMain.jsp?urlType=6','4')">文档目录</a></li>
                    <li><a onclick="change('/docs/docs/DocList.jsp?hasTab=1&_fromURL=4','4')">新建文档</a></li>	
                </ul>
            </li>


        </ul>
    </div>
    <!-- <div id="iframePart" style="margin:0px 7%;height: 100%;"> -->
    <div id="iframePart" style="margin:0px 0px;height: 100%;">
       <iframe onload="changeFrameHeight()" class="context" src="/homepage/Homepage.jsp?hpid=21&subCompanyId=1&isfromportal=1&isfromhp=0&e71531723032922=" frameborder="0" scrolling="no" id="midFraim" style="width:100%;height: 100%;"></iframe>
    </div>
    <div class="footer" id="bottomDiv" style="background: #145eab;height: 40px;line-height: 40px;">
        <span>增城区重点项目协同管理平台</span>
    </div>
    
    <!-- bottomDiv -->

    <script type="text/javascript" src="js/SuperSlide.2.1.js"></script>
    <script src="js/daimabiji.js" type="text/javascript"></script>
    <script type="text/javascript">

        function changeFrameHeight() {
            var ifm = document.getElementById("midFraim");
            //console.log("clientHeight:" + $("#midFraim").contents().find("body").height());
            ifm.height = $("#midFraim").contents().find("body").height();
            //console.log("clientHeight:" + document.documentElement.clientHeight);
            //console.log("body:" + $("#midFraim").contents().find("body").height());

        }

        window.onresize = function() {
            changeFrameHeight();
        }

        function change(url,flag) {
            //console.log("url:"+url+"-------flag:"+flag);
            var ifm = document.getElementById("midFraim").src = url;

            if(flag == 0){
                document.getElementById('bannerId').style.display='block';
                document.getElementById('mhId').style.color='#018efb';
                document.getElementById('zdgzId').style.color='#fff';
                document.getElementById('xmId').style.color='#fff';
                document.getElementById('dtId').style.color='#fff';
                document.getElementById('zsId').style.color='#fff';
                var screenHeight = $(window).height();//获取屏幕可视区域的高度。
                var imgHeight = $("#bannerId").height();
				var iframeHeight = screenHeight-140-imgHeight;
				var ss = iframeHeight+'px';
				document.getElementById("iframePart").style.height=ss;
            }else if(flag == 1){
                document.getElementById('bannerId').style.display='none';
                document.getElementById('mhId').style.color='#fff';
                document.getElementById('zdgzId').style.color='#018efb';
                document.getElementById('xmId').style.color='#fff';
                document.getElementById('dtId').style.color='#fff';
                document.getElementById('zsId').style.color='#fff';
                var screenHeight = $(window).height();//获取屏幕可视区域的高度。
				var iframeHeight = screenHeight-140;
				var ss = iframeHeight+'px';
				document.getElementById("iframePart").style.height=ss;
            }else if(flag == 2){
                document.getElementById('bannerId').style.display='none';
                document.getElementById('mhId').style.color='#fff';
                document.getElementById('zdgzId').style.color='#fff';
                document.getElementById('xmId').style.color='#018efb';
                document.getElementById('dtId').style.color='#fff';
                document.getElementById('zsId').style.color='#fff';
                var screenHeight = $(window).height();//获取屏幕可视区域的高度。
				var iframeHeight = screenHeight-140;
				var ss = iframeHeight+'px';
				document.getElementById("iframePart").style.height=ss;
            }else if(flag == 3){
                document.getElementById('bannerId').style.display='none';
                document.getElementById('mhId').style.color='#fff';
                document.getElementById('zdgzId').style.color='#fff';
                document.getElementById('xmId').style.color='#fff';
                document.getElementById('dtId').style.color='#018efb';
                document.getElementById('zsId').style.color='#fff';
                var screenHeight = $(window).height();//获取屏幕可视区域的高度。
				var iframeHeight = screenHeight-140;
				var ss = iframeHeight+'px';
				document.getElementById("iframePart").style.height=ss;
				//document.getElementById("iframePart").style.margin='0px 0px';
            }else if(flag == 4){
                document.getElementById('bannerId').style.display='none';
                document.getElementById('mhId').style.color='#fff';
                document.getElementById('zdgzId').style.color='#fff';
                document.getElementById('xmId').style.color='#fff';
                document.getElementById('dtId').style.color='#fff';
                document.getElementById('zsId').style.color='#018efb';
                var screenHeight = $(window).height();//获取屏幕可视区域的高度。
				var iframeHeight = screenHeight-140;
				var ss = iframeHeight+'px';
				document.getElementById("iframePart").style.height=ss;
            }
            
        }
        
        $(".two").mouseenter(function() {
             $(".three").css({"visibility":"hidden"});
             $(this).next().css({"visibility":"visible"});
        });

    </script>

    
</body>

</html>
